variables in batch scripts [closed]
Posted
by richzilla
on Super User
See other posts from Super User
or by richzilla
Published on 2010-04-20T22:02:58Z
Indexed on
2010/04/20
23:03 UTC
Read the original article
Hit count: 285
I'm trying to set up a batch file to automatically deploy a php app to a web server. Basically, what I want is an entirely automated process: I would just give it a revision number from the repository and it would then export the files, upload via ftp and then update deployment info at the repo host (codebase).
However, I'm starting from scratch here. How would I set up a batch file to accept a variable when it was run?
For example, the command myfile.bat /revision 42
should deploy revision 42 to my server.
If anyone can point me in the right direction I'd appreciate it.
© Super User or respective owner